package com.cloudeye.sys.manage.controller;


import com.cloudeye.sys.base.model.Result;
import com.cloudeye.sys.manage.service.CityinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author echola
 * @since 2020-12-31
 */
@RestController
@RequestMapping("/manage/cityinfo")
public class CityinfoController {

    @Autowired
    private CityinfoService cityinfoService;

    @GetMapping("/list")
    public Result list(){
        return Result.sussess(cityinfoService.list().subList(0,3));
    }
}

